package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Order;

import java.util.List;
import java.util.Map;
/**
 * 预约的 dao层
 */
public interface OrderDao {
    public void add(Order order);
    public List<Order> findByCondition(Order order);
    public Map findById4Detail(Integer id);
    public Integer findOrderCountByDate(String date);
    public Integer findOrderCountAfterDate(String date);
    public Integer findVisitsCountByDate(String date);
    public Integer findVisitsCountAfterDate(String date);
    public List<Map> findHotSetmeal();
    Page<Map<String, Object>> findByQueryString(String queryString);
    public long findLocationCountByLocationId(Integer locationId);

    void cancelOrder(Integer orderId);

    Map find2DetailsById(Integer orderId);
}
